/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: Approver
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2022/2/11 14:15
 * @version: 1.0
 */
public abstract class Approver {

    /**下一个处理者*/
    Approver approver;

    /**名字*/
    String name;

    public Approver(String name) {
        this.name = name;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }

    /**
     * @author xiayuanxing
     * @description 处理审批请求的方法，得到一个请求，处理是子类完成的，所以做成一个抽象方法
     * @date 2022/2/11 14:19
     */
    public abstract void processRequest(PurchaseRequest purchaseRequest);
}
